package edu.sctu.practice.class02.lvchang.parametersReturn;

/**
 * Created by Administrator on 2015/9/18.
 */
public class Dog {

    protected String name = "老王";
    protected int number = 12345;
    protected int age = 4;
    public String sex = "male";
    public String color = "黑色";

    protected void setName() {
        System.out.println("姓名:" + name);
    }

    protected void setNumber() {
        System.out.println("号码:" + number);
    }

    protected void setAge() {
        System.out.println("年龄:" + age);
    }

    public void setSex() {
        System.out.println("性别:" + sex);
    }

    public void setColor() {
        System.out.println("颜色:" + color);
    }

    public boolean judgeAge() {
        if (age > 5) {
            return false;
        } else {
            return true;
        }
    }
}
